<!DOCTYPE html>
<html lang="en">
<head>
    {% load static %}
    <meta http-equiv="content-Type" charset="UTF-8">
    <meta http-equiv="x-ua-compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Title</title>
    <link rel="stylesheet" href="{% static 'plugin/bootstrap-3.3.7-dist/css/bootstrap.min.css' %}">
    <style>
        .account {
            width: 40%;
            margin: 50px auto;
        }
    </style>
</head>
<body>

<div class="account">
    <h1 class="text-center">注册</h1>
    <form>
        {% for form in form_obj %}
            {% if form.name == "code" %}
                <div class="form-group">
                    <label for="exampleInputEmail1">{{ form.label }}</label>
                    <div class="clearfix">
                        <div class="col-md-6" style="padding-left: 0;">{{ form }}</div>
                        <div class="col-md-6"><input type="button" class="btn btn-default" value="点击获取验证码"></div>
                    </div>
                </div>
            {% else %}
                <div class="form-group">
                    <label for="exampleInputEmail1">{{ form.label }}</label>
                    {{ form }}
                </div>
            {% endif %}

        {% endfor %}
        <button type="submit" class="btn btn-default">Submit</button>
    </form>
</div>

</body>
</html>